package ramakrishnanmoreHealthModel.Campus.Transit;



//Represent Information regarding the Transit Location
public class Sidewalk extends Transit
	{

		
		//TODO: Add mechanism to check the time at Location 1<time Location 2
		//CONSTRUCTORS ======================================
		//PRE-CONDITION:
			//1. Latitude, longitude should not be negative
			//2. Time cannot be negative and decimal
		public Sidewalk(int latitude, int longitude, int time)
			{

				setLocationLatitude(latitude);
				setLocationLongitude(longitude);
				setLocationTime(time);
			
				if (latitude<=-1)
					{System.out.println("Latitude cannot be less than 0.");}
				else if (longitude<=-1)
					{System.out.println("Longitude cannot be less than 0.");}
				else if (time<=-1)
					{System.out.println("Time cannot be less than 0");}
				
			}
			

	}
